package com.sky.mapper;

import com.sky.entity.OrderDetailEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderDetailMapper {

    void insertBatch(List<OrderDetailEntity> list);

    @Select("select * from order_detail where order_id = #{orderId}")
    List<OrderDetailEntity> getByOrderId(Long orderId);

    List<OrderDetailEntity> getByOrderIdWithBatch(List<Long> orderIds);
}
